import os
import re


def get_table_name():
    items = os.listdir(".")
    tablelist = []
    for names in items:
        match = re.match('(.*?)(.xls)$', names)
        if match:
            tablelist.append(match.group())

        search = re.search('(.*?)(.xlsx)$', names)
        if search:
            tablelist.append(search.group())

    tablelist.sort(key=lambda x: int(x.split(".")[0]))
    return tablelist